package com.duo.enums.errorcode;

import lombok.Getter;

/**
 * @Author: Xrx
 * @Description:
 * @CreateTime: 2023/7/6 19:36
 */
@SuppressWarnings(value = "all")
@Getter
public enum CategoryCode implements StatusCode {

    CATEGORY_NOT_FOUND(900, "分类不存在"),
    CATEGORY_HAS_RELATION(901, "分类下有菜品，不能删除");

    private int code;
    private String message;

    CategoryCode(int code, String message) {
        this.code = code;
        this.message = message;
    }


}
